
#ifndef _SOUNDMANAGER_H_
#define _SOUNDMANAGER_H_
#include "cocos2d.h"
#include <list>
#include "SimpleAudioEngine.h"
USING_NS_CC;

class SoundManager
{
public:
	~SoundManager();
	static SoundManager* sharedSoundManager()
	{
		if (NULL==m_SoundManager)
		{
			m_SoundManager=new SoundManager;
		}
		return m_SoundManager;
	}

	void preloadAllMusic();
	void playBackMusic(CCString music,bool loop,int volum=1);
	void stopBackMusic(bool rel);
	void playEffectMusic(CCString music,bool loop);

private:
	SoundManager();
	static SoundManager *m_SoundManager;

	CCString m_CurrentBackMusic;
	std::list<CCString> m_BackMusic;
	std::list<CCString> m_EffectMusic;
	
};
#endif